<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>cpt_管理后台</title>
<link rel="stylesheet" href="../static/layui/css/layui.css" media="all">
<script src="../static/layui/layui.js"></script>
<script src="../static/js/jQuery-1.9.1.min.js"></script>
<link rel="stylesheet" href="../static/css/font.css">
<link rel="stylesheet" href="../static/css/weadmin.css" media="all">
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
	  <!-- 顶部开始 -->
		<div class="container layui-header">
			<div class="logo">
				<a href="./index.html">cpt_管理后台 v1.0</a>
			</div>
			<div class="left_open">
				<i title="展开左侧栏" class="iconfont">&#xe699;</i>
			</div>
			<!-- <ul class="layui-nav left fast-add" lay-filter="">
				<li class="layui-nav-item">
					<a href="javascript:;">+新增</a>
					<dl class="layui-nav-child">
						二级菜单
						<dd>
							<a onclick="WeAdminShow('资讯','https://www.youfa365.com/')" href=""><i class="iconfont">&#xe6a2;</i>资讯</a>
						</dd>
						<dd>
							<a onclick="WeAdminShow('图片','http://www.baidu.com')" href=""><i class="iconfont">&#xe6a8;</i>图片</a>
						</dd>
						<dd>
							<a onclick="WeAdminShow('用户','https://www.youfa365.com/')" href=""><i class="iconfont">&#xe6b8;</i>用户</a>
						</dd>
					</dl>
				</li>
			</ul> -->
			<ul class="layui-nav right" lay-filter="">
				<li class="layui-nav-item">
					<a href="javascript:;">
			          <img src="${user.imgurl}" class="layui-nav-img">
			          ${user.name}
			        </a>
					<dl class="layui-nav-child">
						<!-- 二级菜单 -->
						<dd>
							<a href="javascript:;" onclick="WeAdminShow('个人信息','http://www.baidu.com')">个人信息</a>
						</dd>
						<dd>
							<a href="javascript:;" onclick="WeAdminShow('切换帐号','./login.html')">修改密码</a>
						</dd>
						<dd>
							<a class="loginout" href="logout">退出</a>
						</dd>
					</dl>
				</li>
			</ul>

		</div>
		<!-- 顶部结束 -->
	  
	  <!-- 左侧菜单开始 -->
		<div class="left-nav layui-side">
			<div id="side-nav">
				<ul id="nav">
					<c:forEach items="${user_menus}" var="menu">
					<li>
						<a href="javascript:;">
							<i class="iconfont">&#xe6b8;</i>
							<cite>${menu.name}</cite>
							<i class="iconfont nav_right">&#xe697;</i>
						</a>
						<ul class="sub-menu">
							<c:if test="${not empty menu.children}">
								<c:forEach items="${menu.children}" var="menuchild">
								<li>
									<a _href="${menuchild.resUrl}">
										<i class="iconfont">&#xe6a7;</i>
										<cite>${menuchild.name}</cite>
									</a>
								</li>
								</c:forEach>
							</c:if>
						</ul>
						</li>
					</c:forEach>
				</ul>
			</div>
		</div>
		<!-- <div class="x-slide_left"></div> -->
		<!-- 左侧菜单结束 -->
	  
	  <div class="page-content layui-body">
			<div class="layui-tab tab" lay-filter="wenav_tab" id="WeTabTip" lay-allowclose="false">
				<ul class="layui-tab-title" id="tabName">
					<li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> 首页</li>
				</ul>
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<iframe src='welcomePage' frameborder="0" scrolling="yes" class="weIframe"></iframe>
					</div>
				</div>
			</div>
		</div>
	  
	  <!-- 锁屏 -->
	<div class="admin-header-lock" id="lock-box" style="display: none;">
		<div class="admin-header-lock-img"><img src="http://t.cn/RCzsdCq"/></div>
		<div class="admin-header-lock-name" id="lockUserName">${user.name}</div>
		<div class="input_btn">
			<input type="password" class="admin-header-lock-input layui-input" placeholder="请输入密码解锁.." name="lockPwd" id="lockPwd" />
			<button class="layui-btn" id="unlock">解锁</button>
		</div>
		<p>请输入用户密码，否则不会解锁成功哦！！！</p>
	</div>
	  
	  <div class="layui-footer">
			<p>© CPT_ADMINMANAGER 管理后台^-^<a onclick="sponsor()" class="layui-btn layui-btn-normal layui-btn-sm">喝杯茶</a></p>
		</div>
<script>
//JavaScript代码区域
layui.use(['element','layer'], function(){
  var element = layui.element;
  layui.config({
	  base: '../static/js/'
	  ,version: '101100'
	}).use('admin');
  
  var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
});

/* function sponsor(){
	layer.tab({
		area : ['325px', '305px'],
		tab : [{
			title : "微信",
			content : "<div style='padding:30px;overflow:hidden;background:#d2d0d0;text-align: center;'><img src='../static/images/wxfk.png' style='width: 180px;'></div>"
		},{
			title : "支付宝",
			content : "<div style='padding:30px;overflow:hidden;background:#d2d0d0;text-align: center;'><img src='../static/images/zfbzf.png' style='width: 180px;'></div>"
		}]
	})
} */
</script>
<!--Tab菜单右键弹出菜单-->
	<ul class="rightMenu" id="rightMenu">
        <li data-type="fresh">刷新</li>
        <li data-type="current">关闭当前</li>
        <li data-type="other">关闭其它</li>
        <li data-type="all">关闭所有</li>
    </ul>
</div>
</body>
</html>